<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="book.gmp.html">« GMP</a></li>
      <li style="float: right;"><a href="gmp.setup.html">安装/配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.gmp.html">GMP</a></li>
    <li>简介</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="intro.gmp" class="preface">
  <h1 class="title">简介</h1>
  <p class="simpara">
   These functions allow for arbitrary-length integers to be worked with using
   the GNU <abbr title="Multiple Precision">MP</abbr> library.
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    Most GMP functions accept GMP number arguments. These are shown in this
    documentation as <span class="classname"><a href="class.gmp.html" class="classname">GMP</a></span> objects. Most
    of these functions will also accept numeric and string arguments, so long
    as it is possible to convert the latter to a number. Also, if there is a
    more performant function that can operate on the arguments (integers only),
    then it will be used instead (this is done transparently). See also the
    <span class="function"><a href="function.gmp-init.html" class="function">gmp_init()</a></span> function.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    From PHP 5.6 onwards, the
    <a href="language.operators.arithmetic.html" class="link">arithmetic</a>,
    <a href="language.operators.bitwise.html" class="link">bitwise</a>, and
    <a href="language.operators.comparison.html" class="link">comparison</a> operators
    may be used with the <span class="classname"><a href="class.gmp.html" class="classname">GMP</a></span> objects returned from
    <span class="function"><a href="function.gmp-init.html" class="function">gmp_init()</a></span> and other GMP functions.
   </p>
  </p></blockquote>
  <div class="warning"><strong class="warning">警告</strong>
   <p class="simpara">
    Large integers must be specified as strings - otherwise, PHP will coerce
    them to floats, resulting in a loss of precision.
   </p>
  </div>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <span class="simpara">
    This extension is available on Windows platforms.
   </span>
  </p></blockquote>
 </div></div></div></body></html>